<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="preventiveDetail.aspx.cs" Inherits="preventiveDetail" Title="Untitled Page" %>
<%@ Register Assembly="EclipseWebSolutions.DatePicker" Namespace="EclipseWebSolutions.DatePicker"
    TagPrefix="ews" %>
    
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="m_contentBody" Runat="Server">
<asp:Panel ID="pnlBody" runat="server" >
<table  class="GridItem" cellspacing="2" cellpadding="2" style="width:auto; height:auto;">
    
    <tr>
    <td align="center" valign="top">
    
                      <table>
                        <tr><td colspan="2" class="BigLabelLeftAlign"><asp:Label ID="lblCodeNumber" runat="server" Text="Label" ></asp:Label>
                            <br /><br /></td></tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                System</td>
                            <td align="left">
                                <asp:TextBox ID="txtSystem" runat="server" Enabled="False" 
                                    Height="17px" Width="175px"></asp:TextBox>
                            </td>
                            
                            
                        </tr>
                          <tr>
                            <td align="left" style="width: 165px">
                                Equipment type</td>
                            <td align="left">
                               
                       
                                <asp:TextBox ID="txtEquipmentType" runat="server" Enabled="False" 
                                    Height="17px" Width="175px"></asp:TextBox>
                            </td>
                           
                            
                          </tr>
                          <tr>
                            <td align="left" style="width: 165px">
                                Building </td>
                            <td align="left">
                            <asp:DropDownList ID="drlBuilding" runat="server" Height="25px" 
                          Width="180px" DataSourceID="odsBuilding" 
                          DataTextField="BuildingLabel" DataValueField="BuildingId" Enabled="False">
                                    <asp:ListItem Value="-1">--- Choose building ---</asp:ListItem>
                        </asp:DropDownList>
                                     <asp:ObjectDataSource ID="odsBuilding" runat="server" 
                    SelectMethod="GetBuildings" TypeName="Service.ReferenceDataService">
                </asp:ObjectDataSource>
                                &nbsp;</td>
                           
                            
                                    </tr>
                                    <tr>
                            <td align="left" style="width: 165px">
                            
                                Number of month</td>
                            <td align="left">
                                <asp:TextBox ID="txtNumberOfMonth" runat="server" Height="17px" Width="175px"></asp:TextBox>
                                &nbsp;
                            </td>
                             
                                        </tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                Employee</td>
                            <td align="left">
                                <asp:DropDownList ID="drlEmployee" runat="server" Height="25px" 
                          Width="180px" AppendDataBoundItems="True" DataSourceID="odsITemployee" 
                          DataTextField="EmployeeName" DataValueField="EmployeeId">
                                    <asp:ListItem Value="-1">--- Choose IT employee ---</asp:ListItem>
                        </asp:DropDownList>
                                     <asp:ObjectDataSource ID="odsITemployee" runat="server" 
                    SelectMethod="GetAssignedEmployees" TypeName="Service.ReferenceDataService">
                </asp:ObjectDataSource>
                                <asp:Label ID="lblRequiredEmployee" runat="server" ForeColor="Red" 
                                    Visible="False"></asp:Label>
                            </td>
                           
                            
                        </tr>
                        <tr>
                            <td align="left" style="width: 165px">
                                Start date (mm/dd/yy)</td>
                            <td align="left">
      
                                    <%--<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <ews:DatePicker ID="txtStartDate" runat="server" DateFormatString="MM/dd/yyyy" 
                                                 />
                                        </ContentTemplate>
                                    </asp:UpdatePanel>--%>
                                    <asp:TextBox ID="txtStartDate" runat="server" Width="76px"></asp:TextBox>
                                     <asp:Image ID="imgCalendar" runat="server" ImageUrl="~/images/calendar.png" />
                                     <cc2:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtStartDate" PopupButtonID="imgCalendar">
                                    </cc2:CalendarExtender> 

                                    
                                    <asp:Label ID="lblRequiredStartDate" runat="server" ForeColor="Red" 
                                        Visible="False"></asp:Label>
                            </td>
                           
                           
                        </tr>
                        <tr>
                            <td align="left" style="width: 165px; height: 60px;">
                                Description</td>
                            <td align="left" style="height: 60px">
                                <asp:TextBox ID="txtWODescription" runat="server" Height="59px" 
                                    Width="175px"></asp:TextBox>
                            </td>
                            
                            
                             
                        </tr>
                       
                        <tr>
                            <td align="left" style="width: 165px; height: 60px;">
                                &nbsp;</td>
                            <td align="right" >
                                <asp:TextBox ID="txtHiddenHaveId" runat="server" Enabled="False" Height="17px" 
                                    Width="44px" Visible="False"></asp:TextBox>
                                    <asp:TextBox ID="txtHiddenWOId" runat="server" Enabled="False" Height="17px" 
                                    Width="44px" Visible="False"></asp:TextBox>
                                <asp:TextBox ID="txtHiddenPreventiveId" runat="server" Enabled="False" Height="17px" 
                                    Visible="False" Width="44px"></asp:TextBox>
            <asp:Button ID="btnValidate" runat="server" Height="25px" Text="Validate" 
        Width="71px" CssClass="btnexpress" BorderStyle="Dotted" onclick="btnValidate_Click" />
                
                            </td>     
                        </tr>
                        <tr>
                            <td  align="left" ></td>
                            <td  align="right" colspan="4">
                             <asp:Label ID="lblInformation" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                            <td style="width: 165px; "></td>
                            
                        </tr>
                       
                </table>
  
   </td>
   </tr> 
    </table>
  </asp:Panel>
</asp:Content>

